package com.hesicare.health.service;

import com.hesicare.health.entity.SysUserDept;

import java.util.List;

public interface ISysUserDeptService {

    /**
     * 根据userId 查询员工所有权限科室的deptId
     *
     * @param: 员工主键id
     * @return: 员工拥有机构id集合
     * @author: 55097
     * @date: 2022/1/7
     */
    List<Long> getSysUserDeptByUserId(Long userId);

    /**
     * 通过员工id、科室id查询该员工是否拥有该科室的权限接口
     *
     * @param: SysUserDept 对象
     * @return: SysUserDept 对象
     * @author: 55097
     * @date: 2022/1/7
     */
    SysUserDept getSysUserDept(SysUserDept sysUserDept);

    /**
     * 新增员工权限科室信息接口
     *
     * @param: SysUserDept 对象
     * @return:
     * @author: 55097
     * @date: 2022/1/7
     */
    void insertSysUserDept(SysUserDept sysUserDept);

    /**
     * 批量新增员工权限科室
     *
     * @param: SysUserDept 集合
     * @return:
     * @author: 55097
     * @date: 2022/1/7
     */
    void insertSysUserDept(List<SysUserDept> sysUserDepts);

    /**
     * 删除员工科室权限
     *
     * @param: SysUserDept 对象
     * @return:
     * @author: 55097
     * @date: 2022/1/7
     */
    void deleteSysUserDept(SysUserDept sysUserDept);
}
